home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 76 / XENIATGM66.iso / Indiana Jones / Indiana Jones.exe / RESOURCE / PREVIEW.GOB / cog_aet_slowdeath.cog < prev    next >
Text File  |  1999-11-15  |  4KB  |  133 lines

  1. # Jones 3D Cog Script
  2. #
  3. # aet_SlowDeath.cog
  4. #
  5. # [TL]
  6. #
  7. # (C) 1999 LucasArts Entertainment Co. All Rights Reserved
  8. # ========================================================================================
  9. symbols
  10.     
  11. message     startup
  12. message        crossed
  13.  
  14. thing        player                                local
  15. # Crossable adjoins for entering PORs.        
  16. surface        PORsurf0                            linkid=1    # LAG adjoins                        
  17. surface        PORsurf1                            linkid=1    # PYR adjoins.
  18. surface        PORsurf2                            linkid=1    # RIV adjoins.
  19. surface        PORsurf3                            linkid=1    # RIV adjoins.
  20. surface        PORsurf4                            linkid=1    # TEO adjoins.
  21. surface        PORsurf5                            linkid=1    # SOL adjoins.
  22. surface        PORsurf6                            linkid=1    # SOL adjoins.
  23. surface        PORsurf7                            linkid=1    # SOL adjoins.
  24. surface        PORsurf8                            linkid=1    # BAB adjoins.
  25. surface        PORsurf9                            linkid=1    # BAB adjoins.
  26. surface        PORsurf10                           linkid=1    # BAB adjoins.
  27. # Crossable adjoins for entering AET again.
  28. surface        AETsurf0                            linkid=2                        
  29. surface        AETsurf1                            linkid=2            
  30. surface        AETsurf2                            linkid=2
  31. surface        AETsurf3                            linkid=2
  32. surface        AETsurf4                            linkid=2
  33. surface        AETsurf5                            linkid=2
  34. surface        AETsurf6                            linkid=2
  35. surface        AETsurf7                            linkid=2
  36. surface        AETsurf8                            linkid=2
  37. surface        AETsurf9                            linkid=2
  38. surface        AETsurf10                           linkid=2
  39.  
  40. int            LAGdone=0                            local
  41. int            PYRdone=0                            local
  42. int            RIV1done=0                            local
  43. int            RIV2done=0                            local
  44. int            TEOdone=0                            local
  45. int            SOL1done=0                            local
  46. int            SOL2done=0                            local
  47. int            SOL3done=0                            local
  48.  
  49. sound        musicA=mus_aet_pocket_lag.wav        local        # LAG music.
  50. sound        musicB=mus_aet_pocket_pyr.wav        local        # PYR music.
  51. sound        musicC=mus_aet_pocket_riv.wav        local        # RIV music.
  52. sound        musicD=mus_aet_pocket_teo.wav        local        # TEO music.
  53. sound        musicE=mus_aet_pocket_sol.wav        local        # SOL music.
  54. sound        enterPOR=gen_cage_sophia_enter.wav    local        # Entering the POR sectors.
  55.  
  56. cog            ambient                                            # Cog that controls ambients.
  57.  
  58. end
  59.  
  60. # ========================================================================================
  61. code
  62.  
  63. startup:
  64.  
  65. player = GetLocalPlayerThing();
  66.  
  67. PlayerInPOR(0);
  68.  
  69. return;
  70.  
  71. # ........................................................................................
  72. crossed:
  73.  
  74. # Player has entered a POR and is now safe.
  75. if ((GetSenderId() == 1) && (GetSourceRef() == player))
  76.     {
  77.     PlayerInPOR(1);
  78.     PlaySoundLocal(enterPOR, 0.8, 0, 0x0, 0);
  79.     SendMessage(ambient, user0);
  80.     
  81.     if ((GetSenderRef() == PORsurf0) && (LAGdone == 0))
  82.         {
  83.         LAGdone = 1;
  84.         PlaySoundLocal(musicA, 1, 0, 0x0, 0);
  85.         }
  86.     if ((GetSenderRef() == PORsurf1) && (PYRdone == 0))
  87.         {
  88.         PYRdone = 1;
  89.         PlaySoundLocal(musicB, 1, 0, 0x0, 0);
  90.         }
  91.     if ((GetSenderRef() == PORsurf2) && (RIV1done == 0))
  92.         {
  93.         RIV1done = 1;
  94.         PlaySoundLocal(musicC, 1, 0, 0x0, 0);
  95.         }
  96.     if ((GetSenderRef() == PORsurf3) && (RIV2done == 0))
  97.         {
  98.         RIV2done = 1;
  99.         PlaySoundLocal(musicC, 1, 0, 0x0, 0);
  100.         }
  101.     if ((GetSenderRef() == PORsurf4) && (TEOdone == 0))
  102.         {
  103.         TEOdone = 1;
  104.         PlaySoundLocal(musicD, 1, 0, 0x0, 0);
  105.         }
  106.     if ((GetSenderRef() == PORsurf5) && (SOL1done == 0))
  107.         {
  108.         SOL1done = 1;
  109.         PlaySoundLocal(musicE, 1, 0, 0x0, 0);
  110.         }
  111.     if ((GetSenderRef() == PORsurf6) && (SOL2done == 0))
  112.         {
  113.         SOL2done = 1;
  114.         PlaySoundLocal(musicE, 1, 0, 0x0, 0);
  115.         }
  116.     if ((GetSenderRef() == PORsurf7) && (SOL3done == 0))
  117.         {
  118.         SOL3done = 1;
  119.         PlaySoundLocal(musicE, 1, 0, 0x0, 0);
  120.         }
  121.     }
  122. # Player has left a POR and is NO LONGER safe.
  123. if ((GetSenderId() == 2) && (GetSourceRef() == player))
  124.     {
  125.     PlayerInPOR(0);
  126.     SendMessage(ambient, user1);
  127.     }
  128.  
  129. return;
  130.  
  131. # ........................................................................................
  132. end
  133.